<title>注册登录</title>
  
<div class="layui-card layadmin-header">
  <div class="layui-breadcrumb" lay-filter="breadcrumb">
    <a lay-href="">主页</a>
    <a><cite>ucentre</cite></a>
    <a><cite>注册登录</cite></a>
  </div>
</div>

  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">
          <div class="layui-card-header">注册设置</div>
        <div class="layui-card-body">
          <form class="layui-form layui-form-module" lay-filter="J_ajaxForm" action="{:url('ucentre/reg/index')}" method="post">
          
            <div class="layui-form-item">
              <label class="layui-form-label">允许新用户注册</label>
              <div class="layui-input-inline">
                  <input type="radio" name="close" value="1" title="开放注册" {if $data.close eq 1}checked{/if}>
                  <input type="radio" name="close" value="0" title="关闭注册" {if $data.close eq 0}checked{/if}>
              </div>
            </div>
            
            <div class="layui-form-item layui-form-text">
              <label class="layui-form-label">注册协议内容</label>
              <div class="layui-input-inline">
                <textarea name="regProtocol" class="layui-textarea">{$data.regProtocol}</textarea>
              </div>
              <div class="layui-form-mid layui-word-aux">注册许可协议的内容。支持html代码。</div>
            </div>
            
            
            <div class="layui-form-item">
              <label class="layui-form-label">新用户注册审核</label>
              <div class="layui-input-inline">
                  <input type="radio" name="validate" value="1" title="开启" {if $data.validate eq 1}checked{/if}>
                  <input type="radio" name="validate" value="0" title="关闭" {if $data.validate eq 0}checked{/if}>
              </div>
              <div class="layui-form-mid layui-word-aux">设置新注册的用户是否需要审核</div>
            </div>
            
            <div class="layui-form-item layui-form-text">
              <label class="layui-form-label">禁用用户名</label>
              <div class="layui-input-inline">
                <textarea name="disableName" class="layui-textarea">{$data.disableName}</textarea>
              </div>
              <div class="layui-form-mid layui-word-aux">包含设定词汇的所有用户名将无法成功注册。<br>如你禁用了"admin"，那么所有含有"admin"(如:我是admin)的用户名将被禁止使用。<br>多个词之间用英文半角逗号","分隔。</div>
            </div>
            
          <div class="layui-form-item">
            <div class="layui-inline">
              <label class="layui-form-label">用户名长度控制</label>
              <div class="layui-input-inline" style="width: 138px;"><input type="text" name="nameLengthMin" value="{$data.nameLengthMin}" lay-verify="number" class="layui-input"></div>
              <div class="layui-form-mid">-</div>
              <div class="layui-input-inline" style="width: 138px;margin-left: 0px;"><input type="text" name="nameLengthMax" value="{$data.nameLengthMax}" lay-verify="number" class="layui-input"></div>
              <div class="layui-form-mid layui-word-aux">用户名字符的最小和最大长度，最小值不能小于1，最大值不能大于15。</div>
            </div>
          </div>
            
          <div class="layui-form-item">
            <div class="layui-inline">
              <label class="layui-form-label">密码长度控制</label>
              <div class="layui-input-inline" style="width: 138px;"><input type="text" name="pwdLengthMin" value="{$data.pwdLengthMin}" lay-verify="number" class="layui-input"></div>
              <div class="layui-form-mid">-</div>
              <div class="layui-input-inline" style="width: 138px;margin-left: 0px;"><input type="text" name="pwdLengthMax" value="{$data.pwdLengthMax}" lay-verify="number" class="layui-input"></div>
              <div class="layui-form-mid layui-word-aux">最小值不能小于1，无最大值限制，留空表示不限制。</div>
            </div>
          </div>
            
      <div class="layui-form-item">
        <label class="layui-form-label">强制密码复杂度</label>
        <div class="layui-input-inline">
            <input type="checkbox" name="passwordStrength[max]" lay-skin="primary" title="小写字母" {if isset($data.passwordStrength['max'])}checked{/if}>
            <input type="checkbox" name="passwordStrength[min]" lay-skin="primary" title="大写字母" {if isset($data.passwordStrength['min'])}checked{/if}>
            <input type="checkbox" name="passwordStrength[num]" lay-skin="primary" title="数字" {if isset($data.passwordStrength['num'])}checked{/if}>
            <input type="checkbox" name="passwordStrength[bol]" lay-skin="primary" title="符号" {if isset($data.passwordStrength['bol'])}checked{/if}>
            <input type="checkbox" name="passwordStrength[not]" lay-skin="primary" title="密码不能与用户名相同" {if isset($data.passwordStrength['not'])}checked{/if}>
        </div>
        <div class="layui-form-mid layui-word-aux">密码中必须符合所选条件限制。</div>
      </div>
      
            <div class="layui-form-item">
              <div class="layui-input-block">
                  <button class="layui-btn" lay-submit lay-filter="J_ajax_submit_btn"><i class="layui-icon layui-icon-ok-circle"></i>提交</button>
              </div>
            </div>
          </form>
          
        </div>
      </div>
    </div>
  </div>
</div>
<script>
;!function(){
  var form = layui.form;
  form.render();
}();
</script>